package com.scatteredServer.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.scatteredServer.common.Result;
import com.scatteredServer.mapper.NoticeTextMapper;
import com.scatteredServer.pojo.entity.Notice;
import com.scatteredServer.pojo.vo.NoticeIndexVo;
import com.scatteredServer.service.NoticeService;
import com.scatteredServer.mapper.NoticeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author admin
* @description 针对表【notice(通知表)】的数据库操作Service实现
* @createDate 2024-04-06 16:44:08
*/
@Service
public class NoticeServiceImpl extends ServiceImpl<NoticeMapper, Notice>
    implements NoticeService{

    @Autowired
    NoticeMapper noticeMapper;

    @Autowired
    NoticeTextMapper noticeTextMapper;

    @Override
    public Result<NoticeIndexVo> getIndexNotice(String teacherId) {
        NoticeIndexVo noticeIndexVo;
        noticeIndexVo = noticeMapper.getIndexNotice(teacherId);
        return Result.success(noticeIndexVo);
    }
}




